package com.wanwen.dto;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

public class SigninDto {
	private Integer id;//编号
	private Integer uid;
	private String uname;//用户名
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField("login_time")
	private Date loginTime;//签到时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")
	@TableField("login_out_time")
	private Date loginOutTime;//签退时间
	private String state;//状态
	
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public Date getLoginOutTime() {
		return loginOutTime;
	}
	public void setLoginOutTime(Date loginOutTime) {
		this.loginOutTime = loginOutTime;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	
	public SigninDto(Integer id, Integer uid, String uname, Date loginTime, Date loginOutTime, String state) {
		super();
		this.id = id;
		this.uid = uid;
		this.uname = uname;
		this.loginTime = loginTime;
		this.loginOutTime = loginOutTime;
		this.state = state;
	}
	public SigninDto() {
		super();
	}
	
	@Override
	public String toString() {
		return "SigninDto [id=" + id + ", uid=" + uid + ", uname=" + uname + ", loginTime=" + loginTime
				+ ", loginOutTime=" + loginOutTime + ", state=" + state + "]";
	}
	
}
